@crestapps/ai-chat-ui 2.0.0-preview.203 → 2.0.0-preview.215

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ai-chat.js CHANGED
@@ -765,10 +765,13 @@ window.coreAIChatManager = function (_window$CoreAIChatMar, _window$CoreAIChatMa
765
765
  renderer: renderer
766
766
  }));
767
767
  message._pendingCharts = _pendingCharts.length > 0 ? _toConsumableArray(_pendingCharts) : [];
768
- return DOMPurify.sanitize(html, {
768
+ var sanitizedHtml = DOMPurify.sanitize(html, {
769
769
  ADD_TAGS: ['canvas'],
770
770
  ADD_ATTR: ['target']
771
771
  });
772
+
773
+ // Optional, shared with every chat surface: a run of pictures becomes one stacked carousel.
774
+ return window.CoreAIChatImageCarousel ? window.CoreAIChatImageCarousel.stackAdjacentImages(sanitizedHtml) : sanitizedHtml;
772
775
  }
773
776
  function compactObject(source) {
774
777
  if (!source || _typeof(source) !== 'object') {